package com.leiyuee.springbase.aspect;

import org.aopalliance.intercept.Joinpoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class MyAspect {

    @Before("execution(public void com.leiyuee.springbase.service.UserService.test() )")
    public  void xBefore(Joinpoint joinpoint){
        System.out.println("xBefore");
    }
}
